package com.hibernate.pojo;

import org.springframework.stereotype.Component;

/**
 * Shopcar entity. @author MyEclipse Persistence Tools
 */

@Component("shopcar")
public class Shopcar implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private Integer productId;
	private Integer number;
	private Double money;

	// Constructors

	/** default constructor */
	public Shopcar() {
	}

	/** full constructor */
	public Shopcar(Integer userId, Integer productId, Integer number,
			Double money) {
		this.userId = userId;
		this.productId = productId;
		this.number = number;
		this.money = money;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getProductId() {
		return this.productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Integer getNumber() {
		return this.number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Double getMoney() {
		return this.money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

}